{extend name='public/layout' /}
{block name='search'}{/block}
{block name='content'}

<div class=" member_l overflow_h">
    <div class="main">
        <div class="member_left">
            <div class="mem_t">
                <span><img src="{$userInfo.headimgurl}" width="80" height="80"></span>
                <p>欢迎你，{$userInfo.nickname}</p>
            </div>
            <ul class="mem_ul">
                <li><a href="{:url('user.index/pannel')}" target="rframe" class="selected">首页</a></li>
                <li><a href="{:url('user.message/house')}" target="rframe">留言&报名</a></li>
                <li><a href="{:url('user.used/index')}" target="rframe">二手房管理</a></li>
                <li><a href="{:url('user.rental/index')}" target="rframe">出租房管理</a></li>
                <li><a href="{:url('user.article/index')}" target="rframe">文章管理</a></li>
                <li><a href="{:url('user.ask/index')}" target="rframe">问答管理</a></li>
                <li><a href="{:url('user.account/info')}" target="rframe">账户设置</a></li>
                <li><a href="{:url('user.collection/index')}" target="rframe">我的关注</a></li>
                <li><a href="{:url('user.store/index')}" target="rframe">店铺设置</a></li>
                <li><a href="{:url('user.account/suggest')}" target="rframe">意见反馈</a></li>
                <li><a href="{:url('user.message/index')}" target="rframe">系统消息</a></li>
            </ul>
        </div>
        <div id="J_rframe" class="member_right">
            <iframe id="rframe" name="rframe" onload="iFrameHeight();" src="{$uri}" frameborder="0" scrolling="auto" width="100%"></iframe>
        </div>
    </div>
</div>
<script>
    $(function(){
       $('.mem_ul a').bind('click',function(){
           $(this).addClass('selected').parent().siblings().find('a').removeClass('selected');
       });
    });
    function iFrameHeight() {
        var ifm = document.getElementById("rframe");
        var subWeb = document.frames ? document.frames["rframe"].document : ifm.contentDocument;
        if (ifm != null && subWeb != null) {
            var _h = subWeb.body.scrollHeight;
            ifm.height = _h > 1990 ? 1990 : _h;
        }
    }
</script>
{/block}